package com.lhy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author：罗昊宇
 * @Package：com.lhy.entity
 * @Project：springboot-mybatis-plus
 * @name：Role
 * @Date：2024/4/17 0017  18:50
 * @Filename：Role
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("角色实体类")
@TableName(value = "t_role")
public class Role {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("角色主键")
    private Integer id;
    @TableField(value = "role_name")
    @ApiModelProperty("角色姓名")
    private String roleName;
    @TableField(value = "role_code")
    @ApiModelProperty("角色代码")
    private String roleCode;
    @ApiModelProperty("角色描述")
    private String description;
}
